<?php
class FormControl{
	var $Form; //Controlun bağlı olduğu form
	var $Name; //Control name
	var $Value;//Control value
	var $Attributes; //Extra Değerleri
	var $InputName;

	function FormControl($form,$name,$value = '',$attributes=''){
		$this->Form = $form;
		$this->Name = $name;
		$this->Value = ($this->Form->IsPostBack)?$value:($this->Form->Values[$this->Name]);
		$this->Attributes = $attributes;
		$this->InputName = sprintf("%s%s[%s]", $this->Form->FieldPrefix, $form->Name, $this->Name);
		//$this->InputName = sprintf("%s_%s",$form->Name,$this->Name);
		$this->Display();
	}
	function Display(){
		echo $this->Render();
	}
	function Render(){//override edilecek
	}
}?>